package ru.spbu.mm.diploma.common.facade;

import ru.spbu.mm.diploma.common.entity.Userrole;
import ru.spbu.mm.diploma.server.dao.DAOBean;

import java.util.List;

/**
 *
 */
public class UserroleFacadeImpl implements IUserroleFacade {
    private static UserroleFacadeImpl instance = new UserroleFacadeImpl();

    public static UserroleFacadeImpl getInstance() {
        return instance;
    }

    private UserroleFacadeImpl() {
    }

    public Userrole getUserroleWithId(Integer id) {
        return DAOBean.userroleDAO.getUserroleWithId(id);
    }

    public Userrole getUserroleWithDescription(String description) {
        return DAOBean.userroleDAO.getUserroleWithDescription(description);
    }

    public List<Userrole> getUserroles() {
        return DAOBean.userroleDAO.getUserroles();
    }
}
